<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<body id="login">
<div class="login">
    <h2>管理员登录</h2>		<!-- 注意action属性设为配置文件中的触发登录url -->

    <a href="/register">立即注册</a>
    <form class="layui-form" method="post" action="/login">
<!--        <p style="color: red" >名字或密码有误~</p>-->
        <br>
        <div class="layui-form-item">   <!-- 注意name属性设为username -->
            <input type="text" name="username" lay-verify="required"
                   lay-reqText="管理员名不能为空"
                   placeholder="管理员名" class="layui-input" >
            <i class="layui-icon input-icon">&#xe66f;</i>
        </div>
        <div class="layui-form-item">	<!-- 注意name属性设为password -->
            <input type="password" name="password" lay-verify="required"
                   lay-reqText="密码不能为空"
                   placeholder="密码" class="layui-input">
            <i class="layui-icon input-icon">&#xe673;</i>
        </div>
        <div class="layui-form-item">	<!-- 注意name属性设为remember-me -->
            <input type="checkbox" name="remember-me" lay-skin="primary" title="记住密码">记住密码<br>
            <a class="back" href="javascript:;"  style="margin-top: 10px">忘记密码</a>
        </div>

        <div class="layui-form-item">
            <input type="text" name="code" id="code" placeholder="请输入验证码">

            <img  onClick="this.src=this.src+'?'+Math.random();" id="img" class="admin-captcha" width="90" height="40" src="/sys/getVerify">
        </div>

        <div class="layui-form-item">
            <button style="width: 100%" class="layui-btn" lay-submit lay-filter="login">立即登录</button>
        </div>
    </form>
</div>
<script>

</script>
</body>
</html>